tests: fix clipboard test by loading correct icon
authorVictor Toso <me@victortoso.com>
Mon, 17 Oct 2016 16:21:06 +0000 (18:21 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Oct 2016 15:37:34 +0000 (11:37 -0400)
The icon name changed from "terminal" to "utilities-terminal" in
Adwaita-icon-theme.

Signed-off-by: Victor Toso <victortoso@redhat.com>
https://bugzilla.gnome.org/show_bug.cgi?id=773113

tests/testclipboard.c

index 4d6a804db50564d1c2071f0d7787a22c26f65769..010ee354f39e3c0a855c5860a61f726875ab9fe6 100644 (file)
@@ -81,7 +81,8 @@ on_response (GtkDialog *dialog,
         GtkIconTheme *theme;
         GdkPixbuf *pixbuf;
         theme = gtk_icon_theme_get_default ();
-        pixbuf = gtk_icon_theme_load_icon (theme, "terminal", 1600, 0, NULL);
+        pixbuf = gtk_icon_theme_load_icon (theme, "utilities-terminal", 1600, 0, NULL);
+        g_assert_nonnull (pixbuf);
         gtk_clipboard_set_image (clipboard, pixbuf);
       }
       break;
@@ -91,7 +92,8 @@ on_response (GtkDialog *dialog,
         GtkIconTheme *theme;
         GdkPixbuf *pixbuf;
         theme = gtk_icon_theme_get_default ();
-        pixbuf = gtk_icon_theme_load_icon (theme, "terminal", 48, 0, NULL);
+        pixbuf = gtk_icon_theme_load_icon (theme, "utilities-terminal", 48, 0, NULL);
+        g_assert_nonnull (pixbuf);
         gtk_clipboard_set_image (clipboard, pixbuf);
       }
       break;